﻿using System;

namespace WeatherApp
{
    class Program
    {
        static void Main(string[] args)
        {
            //主题
            WeatherData weatherData = new WeatherData();
            //观察者，将观察者注入主题的哈希集中（观察者列表）
            CurrentConditionDisplay currentConditionDisplay = new CurrentConditionDisplay(weatherData);
            ForecastDisplay forecastDisplay = new ForecastDisplay(weatherData);
            // StatisticsDisplay statisticsDisplay = new StatisticsDisplay(weatherData);
            // XxxDisplay1 xxxDisplay1 = new XxxDisplay1(weatherData);

            //气象站数据获取
            weatherData.SetMeasurements(10, 20, 30);
            weatherData.SetMeasurements(14, 25, 36);
            weatherData.SetMeasurements(40, 50, 60);


            Console.ReadLine();
        }
    }
}
